package com.pf.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 库存
 *
 * @author PanFei
 * @date 2021/5/20 21:06
 * @Version 1.0
 */
@TableName(value = "stock_table")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Stock {

    /**
     * 订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品数量
     */
    private Integer count;

    /**
     * 版本号
     */
    private Integer version;
}
